package com.farah.lease.common.aliOss;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Author 不爱跑步的法拉韶
 * @Date 2024-06-22__16:25
 * @Description AliyunOss配置类
 **/
@Configuration
@EnableConfigurationProperties(AliOssProperties.class)
public class AliOssConfiguration {

    @Autowired
    private AliOssProperties aliOssProperties;

//    @Bean
//    public OSS ossClient() {
//        return new OSSClientBuilder().build(aliOssProperties.getEndpoint(), aliOssProperties.getAccessKeyId(), aliOssProperties.getAccessKeySecret());
//    }
}
